#ifndef __TILEMAP_H__
#define __TILEMAP_H__

#include "map.h"


class TileMap : public Map
{
	public:
		TileMap(boost::shared_ptr<btDynamicsWorld> ownerWorld);
		~TileMap();

		void setDimensions( unsigned int mwidth, unsigned int mheight );
		void createBaseFloor();
		void fillSector( unsigned int floor, unsigned int x, unsigned int z, const string& object, unsigned int orientation  );
		btVector3 getSectorVector(unsigned int x, unsigned int z, btScalar height);

		

		// world dimensions
		btScalar X;
		btScalar Y;
		btScalar sectorsize;
		btScalar hsectorsize;
		btScalar relativeY;
		btScalar hrelativeY;
		btScalar hypotenuse;
		btScalar hhypotenuse;
		btScalar worldX;
		btScalar hworldX;
		btScalar worldZ;
		btScalar hworldZ;
		btScalar wallwidth;
		btScalar hwallwidth;
		
		btVector3 localScale;


		
		void load(const char* mapname);


	private:

// 		File		fileH;
//		void insertCyl(const btTransform& pos);
		
		string map_homedir;
		string map_sysdir;
};

#endif //__TILEMAP_H__
